import { FOOTERSHOW, FOOTERCART } from '../mutation-type'

export default {
  namespaced: true, // 命名空间
  state: {
    footerFlag: true,
    cartNum: ''
  },
  mutations: {
    [FOOTERSHOW] (state, payload) {
      state.footerFlag = payload
    },
    [FOOTERCART] (state, payload) {
      state.cartNum = payload
    }
  },
  actions: {
  }
}
